home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / fpc225_3.zip / F-PCHELP.ZIP / EXEC.HLP < prev    next >
Text File  |  1988-01-11  |  3KB  |  92 lines

  1. \ EXEC.HLP      A utility for calling DOS from Forth.   by Tom Zimmer
  2.  
  3. exec.param      ( --- a1 )
  4.         The EXEC parameter area array.
  5.  
  6. ss_save         ( --- a1 )
  7.         Stack segment save variable.
  8.  
  9. sp_save         ( --- a1 )
  10.         Stack Pointer save variable.
  11.  
  12. <exec>          ( string --- return-code )
  13.         Pass the NULL terminated string to DOS interupt 21 hex
  14.         command 4B hex as the name of a program to execute.
  15.         return-code is a value that tells you if the program
  16.         completed properly.
  17.  
  18. cmdpath         ( --- a1 )
  19.         A handle that contains the complete file specification to
  20.         the COMMAND.COM used to boot the system.
  21.  
  22. initcmdpath     ( --- )
  23.         Initialize CMDPATH to contain the current path to COMMAND.COM.
  24.         This word is automatically performed at Forth cold start time.
  25.  
  26. $sys            ( countedstring --- f1 )
  27.         Pass the countedstring to COMMAND.COM as a command line.
  28.         A shell is spawned in the process with the "/c" parameter
  29.         included so COMMAND.COM terminates on completion of the
  30.         command line. If a NULL string is passed then the DOS shell
  31.         will be spawned for you to enter one or several command
  32.         lines. You can then return to Forth by typing EXIT <enter>.
  33.  
  34. ?syserror       ( n1 --- )
  35.         Check for three specific error codes n1. The codes examined
  36.         are 2 can't find COMMAND.COM, 8 Not enough memory, and -2
  37.         Requires DOS 3 or higher.
  38.  
  39. sys             ( | command --- )
  40.         Accept the command line following SYS as a DOS command line.
  41.  
  42. `               ( command --- )
  43.         A pseudonym for SYS. See also SYS.
  44.  
  45. cmdbuf          ( --- a1 )
  46.         A small buffer inserted in the return stack. Used to hold
  47.         the command that gets build for the following DIS commands.
  48.  
  49. "syscommand     ( a1 n1 c1 --- )
  50.         Perform a DOS command as specified by a1,n1 the DOS command
  51.         like DIR or COPY, automatically append the remainder of the
  52.         forth command line up to delimiter c1.
  53.  
  54. dir             ( <filespec> --- )
  55.         Pass the filespec following DIR to DOS and print a directory
  56.         of the matching filespecs.
  57.  
  58. del             ( <filespec> --- )
  59.         Delete the files specified by filespec.
  60.  
  61. chdir           ( | <filespec> --- )
  62.         Change the directory to the directory specified by filespec.
  63.  
  64. cd              ( | <filespec> --- )
  65.         A pseudonym for CHDIR. See also CHDIR.
  66.  
  67. copy            ( <filespec> --- )
  68.         Perform a DOS COPY with the filespec following the COPY
  69.         command.
  70.  
  71. ren             ( <filespec> --- )
  72.         Perform a RENAME with the filespec following the REN command.
  73.  
  74. rename          ( | <filespec> --- )
  75.         Perform a RENAME with the filespec following the RENAME
  76.         command.
  77.  
  78. "setdrive       ( a1 n1 --- )
  79.         Set the drive specified by the string a1,n1 to be the current
  80.         drive. the string should be in the format: " D:" "SETDRIVE.
  81.  
  82. a:              ( --- )
  83.         set drive a: as default drive.
  84.  
  85. b:              ( --- )
  86.         set drive b as default drive.
  87.  
  88. c:              ( --- )
  89.         set drive c as default drive.
  90.  
  91.  
  92.